#define _CRT_SECURE_NO_WARNINGS

#include"Heap.h"





int main()
{
	Heap hp;
	HeapInit(&hp);
	HeapPush(&hp, 9);
	HeapPush(&hp, 7);
	HeapPush(&hp, 8);
	HeapPush(&hp, 4);
	while (!HeapEmpty(&hp))
	{
		int ret = HeapTop(&hp);
		printf("%d ", ret);
		HeapPop(&hp);
	}

	return 0;
}